package com.example.mobile2021606130zlw33;

import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;


public class MainActivity extends AppCompatActivity {
 TextView tt;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
tt=findViewById(R.id.geng);
int x=0;
for (int i=0;i<=10;i++){
    x+=i;
}
x=uc(x,10);
tt.setText(String.valueOf(x));
    }

    private int uc(int x, int i) {
        return x+=i;
    }
}